import {SimpleSocketClient} from "./simple-socket-client.mjs";

const socket = new SimpleSocketClient();
socket.connect();
const data = {
    name: 'zhang',
    age: 18,
    school: {
        grade: '五',
        className: '三',
        rank: 1
    }
}

socket.onConnected(() => {
    socket.send('/test',data,(resp) => {
        console.log('resp1: ');
        console.log(resp);

        socket.send('/test02',{},(resp) => {
            console.log('resp2: ');
            console.log(resp);
        })
    })
})

